Magic Crystal

Note: This applet is obsolete, Please use MagicCrystal II Applet instead

Move your mouse across this image to see the applet in action.

A few words about this applet:

The applet can be used with any gif87 non-interlaced image. This image can be zoomed out to 1:2 by the applet for better quality of lense effect. The zoomed image will be centered in the applet area. For better appearance, leave some empty area around the zoomed image. Best results can be obtained when the area width is equal to the radius of the lens. For example, if the original image has the size 400x300 and the SPOTR parameter value is 20, then for best results choose applet sizes:

WIDTH=imagewidth/2+SPOTR*2=400/2+20*2=240
HEIGHT=imageheight/2+SPOTR*2=300+20*2=190
(It's the matter of taste of course.)

Applet parameters:

Parameter Name

Value

AUTHOR "Virtual_Max (http://come.to/vmax)" Obligatory parameter
IMAGE Image URL, full or relative (obligatory )
Note: original image will be zoomed out 1:2
SPOTR Radius of magic spot (default value='"20")
BGCOLOR Applet background color, may be useful for transparent images. Default value=000000. For example, if you want a blue background then you should write VALUE="0000FF" (optional)
OUTLINECOLOR Lens outline color (optional). Omit this parameter if you do not need outline.
TEXTCOLOR Main text color (optional), default value="00FF00"
TEXTHIGHLIGHT Text highlight color (optional), default value="FF0000"
LINK0 ....LINKn Text highlight color (optional), default value="FF0000" Map area description is placed in the following order of parameters separated by semicolons:

"URL; left; top; right; bottom; StatusBarText; Description; targetwindowname"

URL - full or relative document URL
left, top, right, bottom - link area margins.
StatusBarText - Text to be displayed in browser status bar (optional)
Description- Text to be displayed in applet window on mouse over link area.
targetwindow - name of target window/frame in browser or one of the following: _top, _blank or _self (optional)


If you do not specify parameter you need to have at least one space character between semicolons separators. Areas can overlap, first links has higher priority.

Note: link area coordinates should be given in original image coordinates (not zoomed)

KEY Obligatory parameter. For use at www.oocities.org
VALUE="113138104-141126133106120117126"

Above Example Code:

<APPLET CODEBASE="./" 
        CODE=magiccrystal.class 
        WIDTH=200 
        HEIGHT=280
>
<PARAM NAME="AUTHOR"        VALUE="Maxim V. Kollegov (aka Virtual_Max, http://www.oocities.org/SiliconValley/Lakes/8620/index.html)">
<PARAM NAME="IMAGE"         VALUE=vmawardmenu.gif>
<PARAM NAME="BGCOLOR"       VALUE="000000">
<PARAM NAME="SPOTR"         VALUE="40">
<PARAM NAME="KEY"           VALUE="113138104-141126133106120117126">
<PARAM NAME="OUTLINECOLOR"  VALUE="FFE77B">
<PARAM NAME="TEXTCOLOR"     VALUE="F7A55A">
<PARAM NAME="TEXTHIGHLIGHT" VALUE="FFE77B">
<PARAM NAME="LINK0"   VALUE="index.html; 20; 240; 220; 270;Back to Cafe; Back to Cafe;_self">
<PARAM NAME="LINK1"   VALUE="javacollection.html; 20; 270; 220; 300;Free Applets from Virtual_Max's Collection;Other Applets;_self">
<PARAM NAME="LINK2"   VALUE="scriptscollection.html; 20;300;220;330;Free Scripts from Virtual Max's Collection;JavaScripts;_self">
<PARAM NAME="LINK3"   VALUE="gotapplet.html;20;330;220;360;Java common problems FAQs page;Have a question?;_self">
<PARAM NAME="LINK4"   VALUE="magiccrystal.zip;20;360;220;39050;Download this Applet Now!; Good Choice!; _self">

<!--For non-Java browsers -->
Sorry you need to have Java Enabled browser to view this applet.

</APPLET>